<?php

namespace app\model;

use think\Model;

class Account extends Model
{

    protected $connection = 'mysql';

    protected $pk = 'id';

    protected $name = 'account';

    public static function datainitial()
    {
      $data =  self::create([
            'title' => '默认平台',
            'endtime' => 0,
            'sort' => 100,
            'create_time' => time(),
            'status' => 1
        ]);

        $data->id;
    }
}
